package cn.huiyunche.base.service.vo;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户常用车型VO
 *
 * @author houjianhui
 */
public class UserAddressVo implements Serializable {

    /**
     * @fieldName: serialVersionUID
     * @fieldType: long
     * @Description: TODO
     */
    private static final long serialVersionUID = -4113062531226109238L;

    private Long id;

    private Long userid;

    @NotBlank(message = "省编码不能为空")
    private String provincecode;

    @NotBlank(message = "省名称不能为空")
    private String provincename;

    @NotBlank(message = "市编码不能为空")
    private String citycode;

    @NotBlank(message = "市名称不能为空")
    private String cityname;

    private String countycode;

    private String countyname;

    @Length(max = 20, message = "发车单位不能超出20位")
    private String unitname;

    @Length(max = 50, message = "详细地址不能超出50位")
    private String address;

    @Length(max = 10, message = "联系人不能超出10位")
    private String contact;

    @Length(max = 11, message = "联系电话不能超出11位")
    private String phone;

    @NotBlank(message = "地址类型不能为空")
    private String addresstype;

    private String isdefault;

    private String comment;

    private Date createtime;

    private Date updatetime;

    //是否是同城地址
    private Boolean isVeneer;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public String getProvincecode() {
        return provincecode;
    }

    public void setProvincecode(String provincecode) {
        this.provincecode = provincecode;
    }

    public String getProvincename() {
        return provincename;
    }

    public void setProvincename(String provincename) {
        this.provincename = provincename;
    }

    public String getCitycode() {
        return citycode;
    }

    public void setCitycode(String citycode) {
        this.citycode = citycode;
    }

    public String getCityname() {
        return cityname;
    }

    public void setCityname(String cityname) {
        this.cityname = cityname;
    }

    public String getCountycode() {
        return countycode;
    }

    public void setCountycode(String countycode) {
        this.countycode = countycode;
    }

    public String getCountyname() {
        return countyname;
    }

    public void setCountyname(String countyname) {
        this.countyname = countyname;
    }

    public String getUnitname() {
        return unitname;
    }

    public void setUnitname(String unitname) {
        this.unitname = unitname;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddresstype() {
        return addresstype;
    }

    public void setAddresstype(String addresstype) {
        this.addresstype = addresstype;
    }

    public String getIsdefault() {
        return isdefault;
    }

    public void setIsdefault(String isdefault) {
        this.isdefault = isdefault;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Boolean getIsVeneer() {
        return isVeneer;
    }

    public void setIsVeneer(Boolean isVeneer) {
        this.isVeneer = isVeneer;
    }

    @Override
    public String toString() {
        return "UserAddressVo{" +
                "id=" + id +
                ", userid=" + userid +
                ", provincecode='" + provincecode + '\'' +
                ", provincename='" + provincename + '\'' +
                ", citycode='" + citycode + '\'' +
                ", cityname='" + cityname + '\'' +
                ", countycode='" + countycode + '\'' +
                ", countyname='" + countyname + '\'' +
                ", unitname='" + unitname + '\'' +
                ", address='" + address + '\'' +
                ", contact='" + contact + '\'' +
                ", phone='" + phone + '\'' +
                ", addresstype='" + addresstype + '\'' +
                ", isdefault='" + isdefault + '\'' +
                ", comment='" + comment + '\'' +
                ", createtime=" + createtime +
                ", updatetime=" + updatetime +
                ", isVeneer=" + isVeneer +
                '}';
    }

}
